package com.futureCloudMOM.core.service;

import com.futureCloudMOM.core.base.service.BaseService;
import com.futureCloudMOM.core.domain.ProduceDispatch;
import com.futureCloudMOM.core.domain.ProduceTaskBill;
import com.futureCloudMOM.core.domain.ProduceTaskBillSub;

/**
 * 【Produce_TaskBillSub】的数据库操作Service
 *
 * @author Administrator
 * @since 2023-06-06 16:03:28
 */
public interface ProduceTaskBillSubService extends BaseService<ProduceTaskBillSub> {

    /**
     * 根据订单生成订单子表
     *
     * @param produceTaskBill 生产订单
     */
    void create(ProduceTaskBill produceTaskBill);

    /**
     * 根据生产订单ID删除订单子表
     *
     * @param billId 生产订单ID
     */
    void deleteByBillId(Long billId);

    /**
     * 生产工单下派
     *
     * @param dto 表单数据
     */
    void dispatch(ProduceDispatch dto);

}
